package IMIC.NGUYENVANDOAN.THREAD_DEMO.SAMPLE02;

public class ImpleRunable implements Runnable {

    @Override
    public void run() {
        System.out.println("Thread started:::" + Thread.currentThread().getName());
        try {
            Thread.sleep(4000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("Thread ended:::" + Thread.currentThread().getName());
    }

    /*
     * public static void main(String[] str){ Thread objT = new Thread(new
     * ImpleRunable(), "Thread demo"); objT.start(); }
     */
}
